// 健康教育内容模型
export interface EducationalContent {
  id: string;
  type: 'video' | 'article' | 'image'; // 内容类型
  title: string;
  description: string;
  contentUrl: string;
  thumbnailUrl?: string;
  category: 'diet' | 'exercise' | 'medication' | 'emotion' | 'general';
  tags: string[];
  duration?: number; // 视频时长（秒）
  readCount: number;
  likeCount: number;
  commentCount: number;
  createdAt: Date;
  updatedAt: Date;
  authorId?: string; // 作者ID，通常是医生
  isRecommended: boolean;
}

// 社区帖子模型
export interface CommunityPost {
  id: string;
  userId: string;
  userName?: string;
  userAvatar?: string;
  title: string;
  content: string;
  images?: string[];
  videoUrl?: string;
  category: string;
  tags: string[];
  viewCount: number;
  likeCount: number;
  commentCount: number;
  createdAt: Date;
  updatedAt: Date;
  isApproved: boolean; // 是否经过审核
}

// 评论模型
export interface Comment {
  id: string;
  parentId?: string; // 父评论ID，用于回复
  contentType: 'post' | 'education';
  contentId: string;
  userId: string;
  userName?: string;
  userAvatar?: string;
  content: string;
  createdAt: Date;
  likeCount: number;
}

// 点赞模型
export interface Like {
  id: string;
  userId: string;
  contentType: 'post' | 'education' | 'comment';
  contentId: string;
  createdAt: Date;
}

// 收藏模型
export interface Favorite {
  id: string;
  userId: string;
  contentType: 'post' | 'education';
  contentId: string;
  createdAt: Date;
}